package ch7.test;

public class Car extends Vehicle{
	
	private int loader;
	
	public void run() {
		System.out.println("载人数为"+loader+"的"+"品牌为"+getBrand()+"的"+getColor()+"速度是"+getSpeed());
	}
	
	

	public Car(String brand, String color, double speed, int loader) {
		super(brand, color, speed);
		this.loader = loader;
	}



	public int getLoader() {
		return loader;
	}



	public void setLoader(int loader) {
		this.loader = loader;
	}



	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Car car = new Car("Honda", "red", 0, 2);
		car.run();

	}

}
